/**
 * 
 */
package jd.eb.grouptest;

import static org.junit.Assert.*;
import java.util.Random;
import org.junit.Test;
//Need to make sure the reference to Simulator Class is right. 

/**
 * @author Jóhan Davidsen
 *
 */
public class SimulatorTest {
	
	
	/**
	 * Test method for {@link Simulator#getRandomInteger(int, int, java.util.Random)}.
	 */
	@Test
	public void testGetRandomInteger() {
		Random rand = new Random();
		int start = 5;
		int end = 5;
		int result = Simulator.getRandomInteger(start, end, rand);
		assertEquals(5,result);
	}

	/**
	 * Test method for {@link Simulator#getLCM(int, int)}.
	 */
	@Test
	public void testGetLCM() {
		int a = 10;
		int b = 20;
		int result = Simulator.getLCM(a, b);
		assertEquals(20,result);
	}
	
	/**
	 * Test method for {@link Simulator#getLCM(int, int)}.
	 */
	@Test
	public void testGetLCMTestZero() {
		int a = 0;
		int b = 20;
		int result = Simulator.getLCM(a, b);
		
		assertEquals(0,result);
	}

	/**
	 * Test method for {@link Simulator#getGCD(int, int)}.
	 */
	@Test
	public void testGetGCD() {
		int a = 10;
		int b = 20;
		int result = Simulator.getGCD(a, b);
		assertEquals(10,result);
		
	}

}
